package com.cloud.point.designPattern.observer.observerCategory;

import com.cloud.point.designPattern.observer.TransferEvent;
import com.cloud.point.designPattern.observer.TransferObserver;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * MonitorObserver
 * 监控观察者
 *
 * @author H
 * @version 1.0
 * @date 2024-03-28 15:43
 */
@Component
@Slf4j
public class MonitorObserver implements TransferObserver {

    @Override
    public void updateInfo(TransferEvent transferEvent) {
        log.info("MonitorObserver: 监控观察者，收到转账事件");
    }
}
